Managing Data Source Credentials and Authentication in Power BI
Course: Microsoft Power BI Training
Topic: Managing Data Source Credentials and Authentication
Course Link: Microsoft Power BI Training at JustAcademy
Demo Link: Register for a Course Demo
JustAcademy Website: Visit JustAcademy
1. Introduction to Data Source Credentials and Authentication
Microsoft Power BI connects to various data sources to collect, transform, model, and visualize business information. These sources may include Excel files, SQL Server databases, SharePoint, cloud databases, web APIs, CSV files, and online services.
Many data sources require users or applications to prove their identity before they can access the data. This process is called authentication. The information used to establish that identity, such as a username and password, an access token, or an organizational sign-in, is associated with the data source credentials.
Managing data source credentials and authentication is essential for creating secure, reliable, and maintainable Power BI reports. Even if a report works correctly in Power BI Desktop, its published semantic model may fail to refresh in Power BI Service if credentials are missing, expired, or configured incorrectly.
1.1 What Are Data Source Credentials?
Data source credentials are authentication details or authorization mechanisms that Power BI uses to access a connected data source.
For example, a company may store its sales information in a SQL Server database. Before Power BI can retrieve the sales records, it may need an authorized database account or an approved organizational identity.
Common examples of data source credentials include:
- Username and password for a database.
- Organizational account credentials.
- OAuth-based authorization for supported cloud services.
- Windows authentication for supported sources.
- Anonymous access for sources that explicitly allow it.
- Service principal or application identity for supported organizational integrations.
1.2 What Is Authentication?
Authentication is the process of verifying the identity of a user, service, or application attempting to connect to a data source.
Power BI uses the authentication method supported by the source and connector. After authentication, the source or service determines what the authenticated identity is allowed to access.
1.3 What Is Authorization?
Authorization determines which data, tables, files, or operations an authenticated identity is permitted to access.
Authentication and authorization are related but different concepts. Authentication verifies identity, while authorization determines permissions.
Example: A user may successfully sign in to a SQL Server database but still be unable to read a particular table because the account lacks the required database permissions.
2. Why Credential Management Is Important
Correct credential management helps Power BI access data securely and keeps reports working during scheduled and manual refresh operations.
2.1 Benefits of Proper Credential Management
- Reliable data access: Ensures Power BI can connect to authorized data sources.
- Successful refresh: Reduces refresh failures caused by invalid or missing credentials.
- Data security: Prevents unauthorized access to sensitive business information.
- Operational continuity: Helps reports continue working when credentials or connection settings change.
- Controlled permissions: Supports the principle of least privilege.
- Centralized administration: Allows authorized administrators to manage shared gateway connections and access.
- Compliance: Supports organizational security policies and access-control requirements.
2.2 What Happens When Credentials Are Incorrect?
Incorrect credentials may prevent Power BI from retrieving updated data. Depending on the source and connection type, users may encounter authentication errors, access-denied messages, failed refresh operations, or unavailable data.
For example, if a database password changes but Power BI continues using the old password, a scheduled refresh may fail until the stored credentials are updated.
3. Understanding Authentication Methods in Power BI
Power BI supports different authentication methods depending on the data source, connector, gateway configuration, and connection scenario. The correct method must be selected for the particular source.
3.1 Basic Authentication
Basic authentication typically uses a username and password to authenticate with a supported service or data source.
Example: A supported database connector may allow a database username and password to be entered when establishing a connection.
Advantages:
- Simple to configure for supported systems.
- Useful for sources that specifically support username-and-password authentication.
- Easy to understand during initial connection setup.
Limitations:
- Passwords may expire or be changed.
- Credentials must be protected carefully.
- Some modern cloud services do not support this authentication method.
- It should not be used when a more appropriate organizational authentication method is required by policy.
3.2 Windows Authentication
Windows authentication uses a Windows identity to access supported data sources, commonly in an organizational network.
It is frequently used with supported on-premises database environments, such as SQL Server, when the account has the necessary permissions.
Example: A business analyst connects Power BI Desktop to an internal SQL Server using an approved Windows account.
Important considerations:
- The Windows identity must have permission to access the source.
- The gateway configuration must support the selected authentication method when required.
- Network, domain, and account policies may affect connectivity.
- Single sign-on and credential delegation require additional configuration in supported scenarios.
3.3 Organizational Account Authentication
Organizational account authentication uses an approved work or school identity to access supported Microsoft and third-party services.
For example, a user may sign in with a Microsoft Entra ID account to access a supported cloud data source.
Benefits:
- Integrates with organizational identity management.
- Can support multifactor authentication and conditional access policies.
- Reduces reliance on separate local passwords where supported.
- Works with supported cloud services and connectors.
The exact sign-in flow and permissions depend on the source and the connector's authentication support.
3.4 OAuth 2.0 Authentication
OAuth 2.0 is an authorization framework commonly used by cloud applications and APIs. It allows an application to obtain access to protected resources through an approved authorization process.
Power BI connectors may use OAuth-based authentication to access supported services without requiring the user to provide their password directly to the connected application.
Example: A user connects to a supported online service and completes an organizational sign-in and consent process.
Important points:
- Access tokens may expire.
- Refresh tokens and reauthentication behavior depend on the identity provider and connector.
- Permissions and consent may be required.
- Some API operations may fail if tokens expire during long-running queries.
- OAuth support varies by connector and gateway scenario.
3.5 Anonymous Authentication
Anonymous authentication is used when a data source permits access without a username or password through the selected connector.
This method may be suitable for publicly accessible resources or endpoints that explicitly permit anonymous requests.
Security consideration: Anonymous access should only be used when appropriate for the data source. A URL being accessible does not automatically mean that all data exposed by it is safe to access without authentication.
3.6 Service Principal and Application Identity
A service principal represents an application identity in Microsoft Entra ID. In supported Power BI and data-source scenarios, application identities can be used for automated or service-to-service access.
Such configurations may require administrator consent, API permissions, tenant settings, appropriate roles, and source-specific setup.
Service principals are not interchangeable with ordinary user credentials, and not every Power BI connector or refresh scenario supports them.
3.7 Authentication Methods Comparison
| Authentication Method |
Typical Use |
Important Consideration |
| Basic |
Supported databases and services |
Protect credentials and monitor password changes. |
| Windows |
Supported on-premises data sources |
Check domain, account, network, and gateway configuration. |
| Organizational account |
Supported cloud and organizational services |
Ensure the identity has access and satisfies organizational policies. |
| OAuth 2.0 |
Supported cloud services and APIs |
Manage consent, token expiration, and reauthentication. |
| Anonymous |
Sources that explicitly permit unauthenticated access |
Confirm that anonymous access is appropriate and secure. |
| Service principal |
Supported application and automation scenarios |
Requires suitable application permissions and source support. |
4. Data Source Credentials in Power BI Desktop
Power BI Desktop provides tools for creating and managing connections to data sources. During connection setup, the connector may ask you to select an authentication method and supply the required credentials.
4.1 Connecting to a Data Source
- Open Power BI Desktop.
- Select Home and then Get data.
- Choose the appropriate connector, such as Excel, SQL Server, Web, or another supported source.
- Enter the connection details, such as a file path, server name, database name, or URL.
- Choose the required authentication method when prompted.
- Enter the credentials or complete the sign-in process.
- Choose the required tables or data objects.
- Load the data or select Transform data to open Power Query Editor.
- Verify that the connection works and that the expected data is available.
4.2 Opening Data Source Settings
Data Source Settings allows users to inspect and manage connection information and permissions for sources used in Power BI Desktop.
- Open Power BI Desktop.
- Go to the Home tab.
- Select Transform data if necessary to access Power Query Editor.
- In Power Query Editor, open File and select Data Source Settings. The available navigation may vary by version.
- Review the listed data sources.
- Select the required source.
- Use the available options to change the source, edit permissions, or clear permissions when appropriate.
Power BI Desktop may provide options for managing sources used by the current file and global permissions. Check which scope is selected before making changes.
4.3 Current File and Global Permissions
| Setting |
Purpose |
When to Use It |
| Current file or workbook permissions |
Manages permissions associated with sources used by the current project. |
When a particular report needs updated credentials or connection settings. |
| Global permissions |
Manages stored permissions that may be reused for matching data sources across files. |
When managing shared local connection permissions. |
The available options and labels can vary by Power BI Desktop version and connection type.
5. Editing and Updating Data Source Credentials
Credentials may need to be updated when a password changes, an account is replaced, access permissions are modified, or an authentication token needs renewal.
5.1 Steps to Edit Credentials in Power BI Desktop
- Open the relevant Power BI Desktop report.
- Navigate to Data Source Settings.
- Select the required data source.
- Choose Edit Permissions, where available.
- Locate the Credentials section.
- Select Edit to change the authentication details.
- Choose the correct authentication method.
- Enter the required credentials or sign in again.
- Confirm the changes.
- Refresh the data and verify that the connection works.
5.2 Clearing Stored Credentials
Sometimes stored credentials become invalid or conflict with the intended authentication method. Clearing the permissions for a particular source can allow Power BI to prompt for new credentials the next time a connection is made.
- Open Data Source Settings.
- Select the relevant data source.
- Choose the option to clear permissions, if available.
- Confirm the action after checking the selected source.
- Reconnect to the data source.
- Choose the correct authentication method and provide valid credentials.
- Test the connection and refresh the report.
Warning: Clearing permissions can affect other reports or queries that rely on the same stored credentials, particularly when global permissions are involved. Avoid clearing all permissions unless you understand the consequences.
6. Managing Credentials in Power BI Service
Power BI Service manages published semantic models, reports, connections, and refresh settings. Credentials configured in Power BI Desktop do not always automatically provide the authentication configuration required by the published semantic model.
After publishing, you may need to configure data source credentials or gateway connections in Power BI Service.
6.1 Opening Semantic Model Settings
- Open Power BI Service.
- Sign in with an account that has the necessary permissions.
- Open the workspace containing the published report.
- Locate the associated semantic model.
- Open its Settings page or available actions menu.
- Find the Data source credentials or connection configuration section.
- Review the current status and any authentication warnings.
6.2 Updating Cloud Data Source Credentials
Cloud sources that Power BI Service can access directly may allow credentials to be configured without an on-premises gateway.
- Open the semantic model settings.
- Locate Data source credentials or the relevant connection settings.
- Select Edit credentials or the available sign-in action.
- Choose the supported authentication method.
- Sign in with the appropriate account or enter the required credentials.
- Confirm the settings.
- Run a test refresh if available.
- Review the refresh history for errors.
The exact settings depend on the connector, connection configuration, and permissions. Some connection types may use centrally managed connections rather than credentials configured directly on the semantic model.
6.3 Taking Over a Semantic Model
Some credential-management operations require the user to own the semantic model. If you have the necessary permissions but do not own the model, the service may offer a Take over option.
Taking over a semantic model changes its ownership context and may affect the credentials or connections used for refresh. Before taking over a production model, check the organization's ownership and operational requirements.
7. Managing Authentication for On-Premises Data Sources
On-premises data sources are hosted within a local network or organizational infrastructure. Power BI Service usually needs an appropriate data gateway when it cannot directly access these sources.
7.1 What Is an On-Premises Data Gateway?
An on-premises data gateway is software that provides a secure connection between supported local data sources and Microsoft cloud services, including Power BI.
For example, a company may store its sales database on an internal SQL Server that is not directly accessible from the internet. A properly configured gateway can enable Power BI Service to reach the database for supported refresh and query scenarios.
7.2 Gateway Configuration Requirements
- The gateway must be installed and running on an appropriate machine.
- The gateway must be registered and available to the correct organization.
- The source must be supported by the gateway.
- Required data source definitions and credentials must be configured.
- The account or semantic model must have the necessary access.
- Server and database names must match between the semantic model connection and gateway data source where applicable.
- Network connectivity, firewall rules, and source permissions must be correct.
7.3 Configuring a Gateway Data Source
- Open the gateway management area in Power BI Service.
- Select the appropriate gateway or connection management option.
- Add a data source if you have the required administrative permissions.
- Choose the data source type, such as SQL Server.
- Enter the server and database information.
- Select an authentication method supported by the connector.
- Provide the credentials required for the source.
- Configure the privacy level where applicable.
- Save the data source configuration.
- Assign access to authorized users or groups.
- Open the semantic model settings and map the model to the appropriate gateway connection.
- Test the connection and refresh.
If you are not a gateway administrator, contact the administrator to create or modify the required data source definition.
7.4 Personal Gateway and Standard Gateway
| Feature |
Personal Mode Gateway |
Standard On-Premises Gateway |
| Typical use |
Individual users managing their own supported connections. |
Organizational environments with shared data sources and administration. |
| Administration |
Generally managed by the individual who configured it. |
Can be managed by authorized gateway administrators. |
| Shared connections |
More limited sharing and management capabilities. |
Supports managed data source definitions and controlled user access. |
| Credentials |
Configured in the supported semantic model settings. |
Typically defined and managed for the gateway data source by its administrator. |
The supported data sources and features differ between gateway modes. Select the mode that matches the organization's security and operational requirements.
8. Understanding Cloud Connections and Gateway Connections
Not every data source requires a gateway. Power BI Service may connect directly to supported cloud sources when network access and authentication are configured correctly.
8.1 Cloud Data Sources
Examples include supported cloud databases, online services, and cloud-hosted files. Authentication may be configured through organizational sign-in, OAuth-based authorization, or another connector-supported method.
8.2 On-Premises Data Sources
Examples include internal SQL Server databases, local file systems, and other supported services that cannot be accessed directly from Power BI Service.
8.3 Comparing Connection Types
| Factor |
Cloud Connection |
Gateway Connection |
| Network access |
Power BI Service connects directly when supported. |
Power BI Service communicates through the configured gateway. |
| Credential management |
Often managed through semantic model or cloud connection settings. |
Depends on gateway mode and the configured gateway data source. |
| Administration |
Requires appropriate source and service permissions. |
May require gateway administrator involvement. |
| Common issue |
Expired sign-in or insufficient source permissions. |
Gateway offline, incorrect mapping, or invalid source credentials. |
9. Authentication and Scheduled Refresh
Scheduled refresh allows Power BI Service to retrieve updated data automatically. For a refresh to succeed, the service must be able to authenticate to every required data source.
9.1 How Credentials Affect Scheduled Refresh
When a refresh begins, Power BI uses the applicable source connection and authentication configuration to access the data. If the credentials are invalid, the connection may fail before the data can be retrieved.
A report that refreshes successfully in Power BI Desktop may fail in Power BI Service because the local environment and cloud service have different access paths, stored credentials, network permissions, or gateway requirements.
9.2 Checklist Before Enabling Scheduled Refresh
- Verify that all data sources are accessible.
- Configure the required authentication method for each source.
- Confirm that credentials are valid and have sufficient permissions.
- Ensure the required gateway is online.
- Verify gateway source definitions and connection mappings.
- Check that every required source is configured when a model uses multiple sources.
- Run a manual refresh to test the connection.
- Configure the refresh schedule according to service limits.
- Review refresh history after the scheduled operation.
9.3 What Happens When a Password Changes?
If a password used by a stored connection changes, Power BI may continue attempting to authenticate with the old password until the appropriate credential configuration is updated.
To resolve the issue, update the credentials in the correct location. Depending on the connection, this may be Power BI Desktop, semantic model settings, a gateway data source, or a centrally managed connection.
10. Understanding Privacy Levels
Power Query privacy levels help control how data from different sources can be combined. They are separate from authentication and do not replace the need for valid credentials.
10.1 Common Privacy Levels
| Privacy Level |
Description |
Example |
| Public |
For data intended to be publicly accessible. |
A public dataset or openly available information. |
| Organizational |
For data intended to be shared within an organization. |
An approved internal business reporting source. |
| Private |
For confidential data that should be isolated from other sources during query combination. |
A sensitive internal dataset. |
10.2 Why Privacy Levels Matter
- They help control how queries combine information from multiple sources.
- They reduce the risk of unintentionally transferring information between sources.
- They can influence Power Query's data-combination behavior.
- Incorrect settings may prevent some query combinations or affect refresh behavior.
Choose a privacy level that reflects the actual sensitivity and intended use of the data. Do not mark a source as Public simply to bypass a query or refresh problem.
11. Managing Credentials for Multiple Data Sources
A single Power BI semantic model can use multiple data sources. For example, a sales dashboard may combine transaction data from SQL Server, product information from Excel, and targets from a SharePoint file.
Each source may require its own connection details and authentication method.
11.1 Multi-Source Credential Management Process
- Identify every data source used by the report.
- Record the connection type and location of each source.
- Determine the authentication method supported by each connector.
- Verify that the required account has access to each source.
- Configure the credentials or gateway data source for each connection.
- Confirm that all required sources are mapped correctly.
- Refresh the model and review the results.
- Document any source-specific maintenance requirements.
11.2 Example Multi-Source Configuration
| Data Source |
Example Authentication |
Possible Connection Requirement |
| SQL Server database |
Windows or database authentication, as supported |
Gateway when the server is on-premises and inaccessible directly. |
| SharePoint Online |
Organizational account or another supported method |
Cloud connection, depending on the connector and configuration. |
| Excel file on a local drive |
Source-specific file access and connection configuration |
Gateway or an alternative supported hosting arrangement for service refresh. |
| Cloud database |
Organizational, database, OAuth-based, or another supported method |
Direct cloud connection when supported and accessible. |
The exact method must be confirmed for each connector. A source's location alone does not determine every authentication requirement.
12. Common Credential and Authentication Errors
12.1 Invalid Username or Password
Problem: Power BI cannot sign in to the data source.
Possible causes:
- The username or password is incorrect.
- The password has expired or changed.
- The account is locked or disabled.
- The credentials were entered for the wrong source.
Solution: Verify the account, update the credentials in the correct configuration location, and test the connection again.
12.2 Access Denied
Problem: Authentication succeeds, but Power BI cannot read the required data.
Possible causes:
- The account lacks permission to access a table, database, file, or API endpoint.
- The organization restricts access through policies.
- The required API permissions or consent have not been granted.
Solution: Ask the source administrator to verify the account's permissions and grant only the access necessary for the reporting task.
12.3 OAuth Token Expired
Problem: A cloud connection fails after previously working.
Possible causes:
- The access token expired.
- Consent was revoked.
- The account's access changed.
- The identity provider requires a new sign-in.
Solution: Reauthenticate using the supported connector workflow, verify consent and account permissions, and test the connection.
12.4 Gateway Offline
Problem: Power BI Service cannot reach a source through the configured gateway.
Solution: Verify that the gateway machine is running, the gateway service is available, the required connection exists, and the configured account has access. Contact the gateway administrator if you do not have permission to manage it.
12.5 Credentials Work in Desktop but Not in Service
Problem: The report refreshes locally but fails after publication.
Possible causes:
- The cloud service has not been configured with the required credentials.
- The source is accessible from the local computer but not through the service's connection path.
- The gateway or connection mapping is missing.
- The server or database names do not match the gateway data source definition.
- The source requires an authentication method that is not supported in the configured scenario.
Solution: Review semantic model settings, verify connection mappings and credentials, and check gateway status and refresh history.
12.6 Privacy-Level Error
Problem: A query combining different sources fails because of privacy restrictions or incompatible settings.
Solution: Review the privacy levels for each source and confirm that the data-combination design complies with organizational policies. Do not disable security protections without understanding the implications.
12.7 Dynamic Data Source Error
Problem: A report uses dynamically constructed data source locations that Power BI Service cannot refresh in the configured scenario.
Solution: Review the query design and connector documentation. Where appropriate, use a supported static connection pattern, supported parameters, or another architecture compatible with the service.
13. Security Best Practices for Credentials
Data source credentials can provide access to confidential company information. Proper handling is therefore essential for secure Power BI development and administration.
- Never hard-code passwords: Avoid placing passwords, tokens, or other secrets directly in M queries, DAX expressions, report text, or source code.
- Use least privilege: Give reporting identities only the permissions they need.
- Protect account credentials: Never share passwords through unsecured messages or public documents.
- Use approved authentication: Follow organizational identity and access-management policies.
- Monitor account changes: Update connections when passwords, tokens, permissions, or account status change.
- Control gateway access: Give gateway and data source permissions only to trusted users and groups.
- Review application permissions: Ensure service principals and applications have only necessary privileges.
- Use secure secret management: Store application secrets in approved secret-management systems when the integration supports them.
- Review audit information: Use available administrative and source logs to investigate unexpected access or failures.
- Remove obsolete access: Revoke access when users, applications, or integrations no longer require it.
- Use multifactor authentication where applicable: Follow the organization's requirements for interactive sign-in.
- Avoid unnecessary credential clearing: Confirm the selected source and permission scope before removing stored credentials.
14. Practical Example: Connecting Power BI to SQL Server
Suppose a retail organization stores sales transactions in a SQL Server database. A Power BI developer needs to connect to the database, create a sales dashboard, and refresh the published report every day.
14.1 Business Requirements
- Retrieve sales records from SQL Server.
- Authenticate using an approved database or Windows identity.
- Restrict access to the tables required for reporting.
- Publish the report to Power BI Service.
- Configure the appropriate gateway if the database is on-premises.
- Keep credentials secure and refresh operations reliable.
14.2 Connect from Power BI Desktop
- Open Power BI Desktop.
- Select Home and then Get data.
- Choose SQL Server.
- Enter the server name and database name, if applicable.
- Select Import or DirectQuery based on the reporting requirements.
- Choose the supported authentication method.
- Enter the required credentials or complete the sign-in process.
- Select the required tables.
- Load the data and build the report.
- Refresh the report to verify that the connection works.
14.3 Configure Power BI Service
- Publish the report to the required workspace.
- Open the semantic model settings.
- Configure source credentials or the appropriate connection settings.
- If the database is on-premises, configure or select the required gateway.
- Verify the gateway data source definition and permissions.
- Confirm that the connection is mapped correctly.
- Run a manual refresh.
- Review refresh history and resolve any errors.
- Configure scheduled refresh if required and supported.
14.4 Example SQL Query
SELECT
OrderID,
OrderDate,
CustomerID,
ProductID,
Quantity,
SalesAmount
FROM dbo.Sales
WHERE OrderDate >= '2026-01-01';
This query retrieves selected sales fields for records on or after January 1, 2026. The example illustrates data retrieval only; successful execution also depends on valid authentication and sufficient database permissions.
14.5 Expected Result
Power BI connects to the database using the configured authentication method and retrieves the permitted data. After publication, the service uses the applicable credentials and connection configuration to refresh the semantic model. If the password changes or gateway access fails, the developer or administrator investigates the issue and corrects the relevant settings.
15. Practical Exercise
Objective: Practice configuring and managing data source credentials in Power BI Desktop and Power BI Service.
Exercise Tasks
- Create a sample Excel file containing customer or sales records.
- Import the file into Power BI Desktop.
- Open Data Source Settings and identify the connection used by the report.
- Review the available credential and permission settings.
- Connect to a supported test database, if one is available.
- Choose an authentication method supported by the source.
- Verify that the selected identity can access the required data.
- Publish the report to Power BI Service.
- Open the semantic model settings and inspect its connection and credential configuration.
- Configure a gateway if the source requires one.
- Run a manual refresh and inspect the refresh history.
- Document any authentication errors and the steps used to resolve them.
Exercise Questions
- What is the difference between authentication and authorization?
- Why can a report work in Power BI Desktop but fail in Power BI Service?
- When is an on-premises data gateway required?
- What should you do when a source password changes?
- Why should passwords not be hard-coded into Power Query scripts?
- What is the purpose of a Power Query privacy level?
- Why should users be given only the minimum permissions necessary?
16. Interview Questions and Answers
Q1. What are data source credentials in Power BI?
Answer: Data source credentials are authentication details or authorization mechanisms that Power BI uses to access a connected data source.
Q2. What is authentication?
Answer: Authentication verifies the identity of a user, application, or service attempting to access a resource.
Q3. What is authorization?
Answer: Authorization determines which resources or operations an authenticated identity is permitted to access.
Q4. Name some authentication methods supported by Power BI connectors.
Answer: Depending on the connector, supported methods may include Basic, Windows, organizational account, OAuth-based authentication, Anonymous, or application identity methods.
Q5. How do you update credentials in Power BI Desktop?
Answer: Open Data Source Settings, select the required source, edit its permissions or credentials, choose the correct authentication method, provide the updated information, and test the connection.
Q6. How do you update credentials in Power BI Service?
Answer: Open the semantic model settings and update the applicable Data source credentials or connection configuration. If the source uses a managed gateway connection, the gateway administrator may need to update its credentials.
Q7. What is an on-premises data gateway?
Answer: It is software that enables supported Microsoft cloud services to connect securely to data sources hosted within an organization's local network.
Q8. Why might a scheduled refresh fail after a password change?
Answer: The stored credentials may still contain the old password. The appropriate connection or gateway configuration must be updated before refresh can authenticate successfully.
Q9. What is OAuth 2.0?
Answer: OAuth 2.0 is an authorization framework that allows applications to obtain access to protected resources through an approved authorization process.
Q10. What is the difference between cloud and gateway connections?
Answer: A supported cloud connection can be accessed directly by Power BI Service, while a gateway connection routes access through a configured gateway for sources that need it.
Q11. What are privacy levels in Power Query?
Answer: Privacy levels help govern how data from different sources can be combined during query evaluation. They are separate from authentication credentials.
Q12. Why should credentials not be hard-coded into queries?
Answer: Hard-coded secrets can be exposed through source code, shared files, or other artifacts. Credentials should be managed through supported, secure connection and secret-management mechanisms.
Q13. What should you check when credentials work in Desktop but not in Service?
Answer: Check service-side credentials, gateway requirements, source permissions, connection mappings, network accessibility, and refresh history.
Q14. What is least-privilege access?
Answer: Least privilege means granting a user, service, or application only the minimum permissions needed to perform its required tasks.
17. Quick Revision Checklist
- Understand the meaning of data source credentials.
- Understand authentication versus authorization.
- Identify the authentication methods supported by common connectors.
- Know how to open Data Source Settings in Power BI Desktop.
- Know how to edit or clear stored credentials carefully.
- Understand how credentials are configured in Power BI Service.
- Know when a gateway is required.
- Understand the difference between personal and standard gateway modes.
- Know how to diagnose credential-related refresh failures.
- Understand the purpose of privacy levels.
- Apply least-privilege access and secure credential-handling practices.
- Verify the connection and refresh history after changing settings.
18. Conclusion
Managing data source credentials and authentication is a fundamental Power BI administration skill. Correct configuration allows Power BI Desktop and Power BI Service to access authorized data sources and helps ensure that refresh operations work as expected.
Understanding authentication methods, managing credentials, configuring gateway connections, and troubleshooting access failures helps developers build more secure and reliable reporting solutions. By following appropriate security practices and regularly reviewing connection settings, organizations can protect sensitive information while maintaining effective business intelligence workflows.
19. Additional Learning Resources